.markdown-editor-container {
  background-color: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #30363d;
  background-color: #161b22;
}

.editor-form {
  padding: 15px 20px;
  background-color: #0d1117;
  border-bottom: 1px solid #30363d;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #8b949e;
}

.form-control {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

.form-control::placeholder {
  color: #484f58;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Disabled state */
.form-control:disabled {
  background-color: #161b22;
  color: #6e7681;
  cursor: not-allowed;
}

/* Error state */
.form-control.error {
  border-color: #f85149;
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15);
}

/* Title input specific styles */
.title-input {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 24px;
  font-weight: 600;
  padding: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.title-input {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 24px;
  font-weight: 600;
  padding: 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.title-input:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

.title-input::placeholder {
  color: #484f58;
}

.editor-header h2 {
  margin: 0;
  color: #c9d1d9;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

.editor-actions button {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn {
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
}

.cancel-btn:hover {
  background-color: #30363d;
  border-color: #8b949e;
}

.save-btn {
  background-color: #238636;
  color: white;
  border: 1px solid #3fb950;
}

.save-btn:hover {
  background-color: #2ea043;
  border-color: #3fb950;
}

.save-btn:disabled {
  background-color: #1a5322;
  border-color: #1a5322;
  opacity: 0.7;
  cursor: not-allowed;
}

.editor-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Override MDEditor styles */
.w-md-editor-toolbar-divider {
  background-color: #30363d !important;
}

.w-md-editor-toolbar li > button {
  color: #c9d1d9 !important;
}

.w-md-editor-toolbar li.active > button,
.w-md-editor-toolbar li > button:hover {
  color: #58a6ff !important;
  background-color: #1f6feb33 !important;
}

.wmde-markdown h1,
.wmde-markdown h2,
.wmde-markdown h3,
.wmde-markdown h4,
.wmde-markdown h5,
.wmde-markdown h6 {
  color: #c9d1d9;
  border-bottom-color: #30363d;
}

.wmde-markdown a {
  color: #58a6ff;
}

.wmde-markdown a:hover {
  text-decoration: underline;
}

.wmde-markdown table th,
.wmde-markdown table td {
  border-color: #30363d;
}

.wmde-markdown table tr {
  background-color: #0d1117;
  border-top: 1px solid #30363d;
}

.wmde-markdown table tr:nth-child(2n) {
  background-color: #161b22;
}
.w-md-editor {
  --md-editor-font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --md-editor-background-color: #0d1117;
  --md-editor-text-color: #c9d1d9;
  --md-editor-border-color: #30363d;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
}

.w-md-editor-toolbar {
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
}

.w-md-editor-content {
  background-color: #0d1117;
}

.wmde-markdown {
  background-color: #0d1117;
  color: #c9d1d9;
}

.wmde-markdown pre {
  background-color: #161b22;
  border: 1px solid #30363d;
}

.wmde-markdown code {
  color: #c9d1d9;
  background-color: rgba(240, 246, 252, 0.15);
}

.wmde-markdown pre > code {
  background-color: transparent;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}
